﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CarLoanSystemWeb.MasterPage
{
    public partial class MainMasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void ShowInfoMessage(string msg)
        {
            this.lblMessage.Text = msg;
            this.divMessage.Visible = true;
            this.divMessage.Attributes.Add("class", "info Green");
        }

        public void ShowErrorMessage(string msg)
        {
            this.lblMessage.Text = msg;
            this.divMessage.Visible = true;
            this.divMessage.Attributes.Add("class", "info Red");
        }

        protected void btnClose_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/pageSignOn/SignOn.aspx");
        }
    }
}